package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CwPropertyMapper;
import com.ruoyi.system.domain.CwProperty;
import com.ruoyi.system.service.ICwPropertyService;

/**
 * illustriousness.`cw_property`Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class CwPropertyServiceImpl implements ICwPropertyService 
{
    @Autowired
    private CwPropertyMapper cwPropertyMapper;

    /**
     * 查询illustriousness.`cw_property`
     * 
     * @param pid illustriousness.`cw_property`主键
     * @return illustriousness.`cw_property`
     */
    @Override
    public CwProperty selectCwPropertyByPid(Long pid)
    {
        return cwPropertyMapper.selectCwPropertyByPid(pid);
    }

    /**
     * 查询illustriousness.`cw_property`列表
     * 
     * @param cwProperty illustriousness.`cw_property`
     * @return illustriousness.`cw_property`
     */
    @Override
    public List<CwProperty> selectCwPropertyList(CwProperty cwProperty)
    {
        return cwPropertyMapper.selectCwPropertyList(cwProperty);
    }

    /**
     * 新增illustriousness.`cw_property`
     * 
     * @param cwProperty illustriousness.`cw_property`
     * @return 结果
     */
    @Override
    public int insertCwProperty(CwProperty cwProperty)
    {
        return cwPropertyMapper.insertCwProperty(cwProperty);
    }

    /**
     * 修改illustriousness.`cw_property`
     * 
     * @param cwProperty illustriousness.`cw_property`
     * @return 结果
     */
    @Override
    public int updateCwProperty(CwProperty cwProperty)
    {
        return cwPropertyMapper.updateCwProperty(cwProperty);
    }

    /**
     * 批量删除illustriousness.`cw_property`
     * 
     * @param pids 需要删除的illustriousness.`cw_property`主键
     * @return 结果
     */
    @Override
    public int deleteCwPropertyByPids(Long[] pids)
    {
        return cwPropertyMapper.deleteCwPropertyByPids(pids);
    }

    /**
     * 删除illustriousness.`cw_property`信息
     * 
     * @param pid illustriousness.`cw_property`主键
     * @return 结果
     */
    @Override
    public int deleteCwPropertyByPid(Long pid)
    {
        return cwPropertyMapper.deleteCwPropertyByPid(pid);
    }
}
